package com.service.business.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.coupon.controller.req.MemberCouponPageReq;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.model.MemberCoupon;

import java.util.List;

public interface MemberCouponService extends IService<MemberCoupon> {

    /**
     * 获取当前用户对应该产品的所有有效优惠券
     * @param memberId
     * @param productId
     * @return
     */
    List<MemberCoupon> listByMemberAndProductId(Integer memberId, Integer productId);


    /**
     * 分页获取用户有效优惠券
     * @param req
     * @return
     */
    CommonPageRep<MemberCoupon> pageMemberCouponById(MemberCouponPageReq req);
}
